package networkcontroller.packet;

import networkcontroller.xml.XMLAlive;

/**
 * class for alive packet - information that host is online
 * 
 * @author maciek
 * 
 */
public class AlivePacket extends Packet
{
	/**
	 * constructs alive packet with given host and port
	 * 
	 * @param host
	 *            source host
	 * @param port
	 *            source port
	 */
	public AlivePacket(String host, int port)
	{
		super(true, false);
		type = Packet.ALIVE_CODE;
		xml = new XMLAlive(host, port);
		createPacket();
	}
}
